package com.glsc.ngateway.common.base.repo.mysql.flowable;

import com.glsc.ngateway.common.base.domain.mysql.flowable.FlowableCommentSupplement;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;


public interface FlowableCommentSupplementRepo extends JpaRepository<FlowableCommentSupplement, Long>, JpaSpecificationExecutor<FlowableCommentSupplement> {


    List<FlowableCommentSupplement> findByTaskId(String taskId);

    @Query(value = "select * from t_flowable_comment_supplement where task_id in (:taskIdList ) ", nativeQuery = true)
    List<FlowableCommentSupplement> findByTaskIdList(List<String> taskIdList);
}